package com.ld.admin.util.daliySentence;

import com.ld.admin.util.daliySentence.model.DaliySentenceBaseInfo;
import com.ld.admin.util.daliySentence.model.DaliySentenceModel;

/**
 * 每日一句接口
 * 
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2020年7月22日 上午8:27:50
 *
 */
public interface DaliySentence {
    public DaliySentenceModel getSentence(); // 获取句子

    public String getKey();

    public String getName();

    public String getURL();

    public String getLinkURL();

    public String getDescription();

    public default DaliySentenceBaseInfo getBaseInfo() {
        DaliySentenceBaseInfo model = DaliySentenceBaseInfoFactory.getDSBaseInfo(getKey());
        model.setKey(getKey());
        model.setName(getName());
        model.setUrl(getURL());
        model.setLinkUrl(getLinkURL());
        model.setDescription(getDescription());
        return model;
    }

}
